package com.shop.dingdongshoppingapi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@TableName("t_history")
public class History {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Integer uid;
    private String keyword;
    private Date ctime;

    public History() {
        this.ctime = new Date();
    }
}
